

/* Modern CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  --primary: #28a745;
  --primary-dark: #1d4ed8;
  --secondary: #4c5b6c;
  --accent: #ffd700;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
}

/* Modern Header Styles */
/* Base styles for the header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: var(--background);
color: var(--text);
position: relative;
}

.logo h1 {
font-size: 2rem;
margin: 0;
text-align: center;
color: #ffd700;
}

/* Navigation menu styles */
nav {
display: flex;
align-items: center;
gap: 1rem;

}

.nav-menu {
display: flex;
gap: 2rem;
align-items: center;
padding: 0;
margin: 0;
list-style: none;
}

.nav-menu li a {
color: var(--text);
text-decoration: none;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
transition: all 0.2s ease;
}

.nav-menu li a:hover {
background-color: var(--primary);
color: var(--background);
}

/* Dropdown menu styles */
.dropdown {
position: relative;
display: none; /* Hidden by default */
}

.dropdown-btn {
background: none;
border: none;
cursor: pointer;
font-size: 1.5rem;
color: var(--text);
padding: 0.5rem;
}

.dropdown-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
background-color: var(--background);
border: 1px solid var(--primary);
border-radius: 0.5rem;
padding: 0.5rem;
list-style: none;
margin: 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
padding: 0.5rem 1rem;
font-size: 1rem;
color: var(--text);
cursor: pointer;
}

.dropdown-menu li:hover {
background-color: var(--primary);
color: var(--background);
}

/* Hamburger menu for mobile devices */
.menu-toggle {
display: none;
}

.menu-icon {
display: none;
cursor: pointer;
font-size: 1.5rem;
color: var(--text);
padding: 0.5rem;
}

/* Responsive styles for tablets */
@media (max-width: 768px) {
.logo h1 {
    font-size: 1.5rem;
}

.nav-menu {
    gap: 1rem;
}

.nav-menu li a {
    padding: 0.5rem;
}
}

/* Responsive styles for mobile devices */
@media (max-width: 480px) {
.logo {
    display: none; /* Hide the logo on mobile */
}

.nav-menu {
    display: none; /* Hide the main menu on mobile */
}

.dropdown {
    display: block; /* Show the dropdown menu */
}

.menu-icon {
    display: block; /* Show the hamburger menu icon */
}

.menu-toggle:checked ~ .nav-menu {
    display: flex; /* Show the main menu when the checkbox is checked */
    flex-direction: column;
    background-color: var(--background);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
}
 
/* Hero Section */
/* Base styles for the hero section */
.hero {
padding-top: 6rem;
min-height: 90vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
color: var(--surface);
text-align: center;
}

/* Name/title styles */
.hero h2 {
font-size: 3rem;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
margin-bottom: 1.5rem;
color: #ffd700;
padding: 0 1rem; /* Add padding to prevent text overflow */
}

/* Responsive styles for tablets */
@media (max-width: 768px) {
.hero {
    padding-top: 4rem;
    min-height: 70vh;
}

.hero h2 {
    font-size: 2.5rem; /* Slightly smaller font size for tablets */
}
}

/* Responsive styles for mobile devices */
@media (max-width: 480px) {
.hero {
    padding-top: 3rem;
    min-height: 50vh;
}

.hero h2 {
    font-size: 2rem; /* Smaller font size for mobile devices */
}
}

/* categories and products */
.categories, p {
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: center;
}
.categories, .products {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px;
}

.category, .product {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  width: 200px;
  background-color: #f9f9f9;
}

.category img, .product img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.product .categories, button {
  margin-top: 10px;
  padding: 10px 15px;
  border: none;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
button, a{
  text-decoration: none;
  color: white;
}

.product .category, button:hover {
  background-color: #218838;
}

#special-paragraph {
  text-align: center;
  color: #ffd700;
  font-size: 22px;
  font-weight: bold;
}

/* Modern Buttons */
button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 1rem;
}
button, a {
  text-decoration: none;
  color: #ffffff;
  
}

button:hover {
  background-color: var(--primary-dark);
}


/* contact us */
/* Base styles for all devices */
.contact-container {
position: relative;
max-width: 600px;
margin: 50px auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
z-index: 1;
}

.contact-container h2 {
text-align: center;
color: #333;
margin-bottom: 20px;
}

.input-box {
position: relative;
margin-bottom: 30px;
}

.input-box input,
.input-box textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
background-color: #fff;
color: #333;
}
.input-box input {
  padding: 10px 45px 10px 15px;
}

.input-box label {
position: absolute;
top: 10px;
left: 15px;
font-size: 16px;
color: #666;
transition: 0.3s;
pointer-events: none;
}

.input-box input:focus ~ label,
.input-box textarea:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:valid ~ label {
top: -15px;
left: 10px;
font-size: 12px;
color: #333;
}

.input-box .icon {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
color: #666;
}

.contact-container button {
width: 100%;
padding: 10px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

.contact-container button:hover {
background-color: #555;
}

.blob {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}

/* Responsive styles for tablets */
@media (max-width: 768px) {
.contact-container {
    max-width: 90%; /* Reduce width for tablets */
    padding: 15px;
}

.contact-container h2 {
    font-size: 24px; /* Slightly smaller heading */
}

.input-box input,
.input-box textarea {
    font-size: 14px; /* Smaller font size for inputs */
}

.input-box label {
    font-size: 14px; /* Smaller font size for labels */
}

.contact-container button {
    font-size: 14px; /* Smaller font size for button */
}
}

/* Responsive styles for mobile devices */
@media (max-width: 480px) {
.contact-container {
    max-width: 100%; /* Full width for mobile */
    margin: 20px auto;
    padding: 10px;
}

.contact-container h2 {
    font-size: 20px; /* Even smaller heading */
}

.input-box input,
.input-box textarea {
    font-size: 12px; /* Smaller font size for inputs */
}

.input-box label {
    font-size: 12px; /* Smaller font size for labels */
    left: 35px; /* Adjust label position for smaller screens */
}

.input-box .icon {
    left: 5px; /* Adjust icon position for smaller screens */
}

.contact-container button {
    font-size: 12px; /* Smaller font size for button */
}
}

/* footer */
.footer-container {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 1rem 2rem 1rem;
  direction: rtl;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.footer-section h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-text {
display: block ;
max-width: 800px;
margin: 0 auto;
padding: 3px;
direction: rtl;
text-align: right;
font-family: 'Arial', sans-serif;
line-height: 1.6;
white-space: pre-line;  
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: #f3f4f6;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #ffd700;
}
.footer-section .service1,
.footer-section .service2 {
  display: inline-block;
  margin: 0 10px;
}

.footer-section ul {
list-style: none;
padding: 0;
margin: 0;
text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid #374151;
  margin-top: 3rem;
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
  }
}

/* Cart Icon */
ion-icon[name="cart-outline"] {
  font-size: 1.5rem;
  color: var(--text);
  transition: color 0.2s ease;
}

ion-icon[name="cart-outline"]:hover {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  
  .search-bar {
    width: 100%;
    margin: 1rem 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
}
